<%--
    Document   : addv030
    Created on : Jul 30, 2012, 3:14:19 PM
    Author     : ems
--%>


<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
    "http://www.w3.org/TR/html4/loose.dtd">

<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@taglib prefix="f" uri="http://java.sun.com/jsf/core" %>
<%@taglib prefix="h" uri="http://java.sun.com/jsf/html" %>
<%@taglib prefix="rich" uri="http://richfaces.org/rich" %>
<%@taglib prefix="a4j" uri="http://richfaces.org/a4j" %>

<html>
    <head>
        <link rel="stylesheet" type="text/css" href="../css/popup.css"/>
        <link rel="stylesheet" type="text/css" href="../css/jquery.fancybox-1.3.4.css"/>
        <link rel="stylesheet" type="text/css" href="../css/kapiform.css"/>
        <script type="text/javascript" language="javascript" src="../scripts/jQuery/jquery-1.7.2.min.js"></script>
        <script type="text/javascript" language="javascript" src="../scripts/jQuery/kapi.js"></script>

    </head>
    <script type="text/javascript" language="javascript">
        var open_cur = 0;
        $j = jQuery.noConflict();
        $j(document).ready(function(){
            showGlobalReport();
            swapMenu();
           
        });
               
    </script>  
    <script type="text/javascript" language="javascript">
        function insertText(id){
            
            alert('aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa');
            var editor = tinyMCE.get(id);
            editor.setContent( "some text");
        }
    </script>
    <script type="text/javascript">
        function ununicode2(str){
            str= str.toLowerCase();
            str= str.replace(/à|á|ạ|ả|ã|â|ầ|ấ|ậ|ẩ|ẫ|ă|ằ|ắ|ặ|ẳ|ẵ/g,"a");
            str= str.replace(/è|é|ẹ|ẻ|ẽ|ê|ề|ế|ệ|ể|ễ/g,"e");
            str= str.replace(/ì|í|ị|ỉ|ĩ/g,"i");
            str= str.replace(/ò|ó|ọ|ỏ|õ|ô|ồ|ố|ộ|ổ|ỗ|ơ|ờ|ớ|ợ|ở|ỡ/g,"o");
            str= str.replace(/ù|ú|ụ|ủ|ũ|ư|ừ|ứ|ự|ử|ữ/g,"u");
            str= str.replace(/ỳ|ý|ỵ|ỷ|ỹ/g,"y");
            str= str.replace(/đ/g,"d");
            str= str.replace(/!|@|%|\^|\*|\(|\)|\+|\=|\<|\>|\?|\/|,|\.|\:|\;|\'| |\"|\&|\#|\[|\]|~|$|_/g,"-");
            /* tìm và thay thế các kí tự đặc biệt trong chuỗi sang kí tự - */
            str= str.replace(/-+-/g,"-"); //thay thế 2- thành 1-
            str= str.replace(/^\-+|\-+$/g,"");
            //cắt bỏ ký tự - ở đầu và cuối chuỗi
            return str;
        }
        var open_cur = 0;
        $j = jQuery.noConflict();
        $j(document).ready(function(){
            
            $j('.keysearchab').live('keyup',function(){
                //alert('keysearchab');
                if($j('.keysearchab').val() == ""){
                    $j('.rich-table-row').show();
                                   
                }else{
                    $j('.rich-table-row').hide();
                    $j('.rich-table-row').each(function(){
                        html = $j(this).html();
                        //alert(ununicode2($j('.keysearchab').val())+"----"+ununicode2(html));
                        if(   ununicode2(html).indexOf(  ununicode2($j('.keysearchab').val()) ) > -1    )  {
                            $j(this).show();
                            //alert("html1");
                        }else{
                            $j(this).hide();
                            //alert("html2");
                        }
                    });
                }

            });
                
            
            $j(".more_detail_vh").live("click",function(){
                //alert($j(this).parent(".customer-box").find(".popup-footer").attr("class"));
                $j(".more_detail_vh_down").css("display","block");
                $j(".more_detail_vh").css("display","none");
                $j(".morevh").css("display","block");
                //                $j(this).parent(".customer-box").css("height","380px");
                //                $j(this).parent(".customer-box").find(".popup-footer").css("margin-top","60px");
            });
            $j(".more_detail_vh_down").live("click",function(){
                //alert($j(this).parent(".customer-box").find(".popup-footer").attr("class"));
                $j(".more_detail_vh").css("display","block");
                $j(".more_detail_vh_down").css("display","none");
                $j(".morevh").css("display","none");
                //                $j(this).parent(".customer-box").css("height","234px");
                //                $j(this).parent(".customer-box").find(".popup-footer").css("margin-top","5px");
            });  
            //            $j('.import').live("click", function(){
            //                alert('aaaaaaaaaaaaaaaaaaaaaaaaaa');
            //                //var tempval = $j(this).attr('lang');
            //                var th = $j(this).parent().next().find('.editor').find('.mceEditor').find('.mceLayout').find('.mceLast').find('.mceIframeContainer > iframe').find('html').find('body');
            //                //alert(th.attr('id'));
            //                $j.post("temp.html",function(data){
            //                    alert(th.html);
            //                    alert(data)
            //                    th.html(data);
            //                    
            //                });
            //                
            //            });
            
            $j(".name_map").live("mouseover",function(){
               
                $j(this).find(".name_map_delete").css("display","block");
                $j(this).find(".keyname").css({"background":"#A0CCF7"," border-radius":"4px","padding":"2px"});
            });
            $j(".name_map").live("mouseout",function(){
                $j(this).find(".name_map_delete").css("display","none");
                $j(this).find(".keyname").css({"background":"none"," border-radius":"none","padding":"0px"});
            });
           
            $j(".name_map_delete").live("click",function(){
                key = $j(this).attr("lang");
                $j.post("mailInput.jsp?action=come_person&key="+key,function(data){
                    if(data != null) {
                        $j("#"+key).remove();
                    }
                });
            });

            
            //header_mail
            $j('.header_mail').live('click',function(){
                
                //$j('.main_content').addClass('disble');
                var ct = $j(this).next('.main_content');
                //alert(ct.attr('class'));
                if(ct.hasClass('disble')){
                    //alert('Hasclass disble');
                    $j('.main_content').addClass('disble');
                    ct.removeClass('disble');
                }else{
                    //                    alert('Hasclass disble');
                    //                    ct.addClass('disble');
                }
            });
            
            $j('.check_select').live('click',function(){
                var lang= $j(this).parent(".selectedfn100").attr("lang");
                var id = $j(this).attr("lang");
                var boool;
                //alert(lang + " - "+ id)               
                if( $j(this).is(":checked"))
                {
                    boool = true;
                    
                }
                else
                {
                    boool = false;
                }
                            
                $j.post("popupSendmailEx.jsp?action=addCusp100&p100="+lang+"&valueC="+boool,function(data){
                            
                });
            });
                    
            $j(".checkAll").live("click",function(){
                //alert('check all');
                flag = $j('.checkAll').is(':checked');
                       
                $j(".check_select").each(function(){
                    $j('.check_select')  .attr('checked', flag);
                });
                        
                var boool;
                if( $j(this).is(":checked"))
                {
                    boool = true;
                }
                else
                {
                    boool = false;
                }
                        
                $j.post("popupSendmailEx.jsp?action=addAllCusp100&boool="+boool,function(data){
                            
                });

            });
           
            $j("#fancybox-close").live("click",function(){
                //                alert('aaaaaaaaaaaaaaaaaaa');
                //                widows.location.href="mail.jsp?action=clear";
                window.location.href="mailExtend.jsp?action=clear";   
            });
            
        });


    </script>
    <style type="text/css">
        .listInfo{
            font-family: arial;
            font-size: 11px;
            display: table;
            background: #FFFFFF;
            padding-left: 3px;
            border: none;
        }
        .menu-header{
            float:left;
            height:20px;
            width:auto;
            margin-left:20px;
            padding:2px 20px;
            font-weight: bold;
            cursor:pointer;
            background: #2C3945;
            color:white;
        }
        .person{
            overflow: auto;

            border: 1px silver solid;
        }

        label{font-size:12px; text-align: right !important;}
        option{font-size:12px;}
        .rich-inslider-track{width:178px;}

        .menu-header a {
            font-weight: bold;
        }

        .menu-header a:link {
            color: #ffffff;
            text-decoration: none;
        }
        .menu-header a:visited {
            color: #ffffff;
            text-decoration: none;
        }
        .menu-header a:hover {
            color: #ffffff;
            text-decoration: none;
        }
        .menu-header a:active {
            color: #ffffff;
            text-decoration: none;
        }
        .come_person{
            border: 1px solid #EAE9E8;
            float: left;

            margin-top: 4px;
            min-height: 21px;
            padding-left: 14px;
            padding-top: 6px;
            width: 548px;

        }
        .name_map{
            float: left;
            font-size: 12px;
            padding:4px;
            position: relative;
        }
        .name_map .keyname:hover{
            background: none repeat scroll 0 0 #A0CCF7;
            border-radius: 4px;
            padding: 2px;

        }
        .name_map_delete{
            background: url("../images/delete_1.png") repeat scroll 0 0 transparent;
            height: 15px;
            position: absolute;
            right: 0;
            top: 0;
            width: 16px;
            display: none;

        }
        .group_mail{
            float:left;
            width:300px;
        }
        .send_to{
            margin-top:5px ;
        }
        .group_mail_right{
            float: right;
            margin-right: 44px;
            width: 300px;
        }
        .main_content {
            width: 94% !important;
            margin-left: 25px;
            -moz-border-bottom-colors: none;
            -moz-border-left-colors: none;
            -moz-border-right-colors: none;
            -moz-border-top-colors: none;
            background: none repeat scroll 0 0 #E5E8EA;
            border-color: -moz-use-text-color #CCCCCC #CCCCCC;
            border-image: none;
            border-right: 1px solid #CCCCCC;
            border-style: none solid solid;
            border-width: medium 1px 1px;
            float: left;
            margin-left: 25px;
            padding: 18px 0 10px;
        }
        .popup-content .main_content .form_item_content {
            float: left;
            height: auto;
            margin-left: -10px;
            margin-top: 21px;
            width: 100%;
        }
        .rich-fileupload-name {
            height: 17px;
            padding: 2px 10px;
            width: 100%;
        }
        .rich-fileupload-toolbar-decor {
            background-color: #FFFFFF;
            padding: 0;
            border:none;
            width: 154px;
            float:left;
        }
        .rich-fileupload-list-decor {
            width: 463px; 
            border:none;
            margin-left: 124px;
            margin-top: 0px;
            background: #E5E8EA;
        }
        .rich-fileupload-name-padding:nth-child(1){
            float:left;
            width:215px !important;
        }
        .rich-fileupload-name-padding{
            float:left;
        }
        .rich-fileupload-name-padding:nth-child(3){
            width:58px !important;
            text-align: right;
            float:left;
        }
        .popup-content .main_content .form_item_content .fields_input table{
            background: #E5E8EA;

        }

        .rich-fileupload-table-td {
            border-bottom: 1px dashed;
            white-space: nowrap;
        }

        .rich-fileupload-list-overflow{
            height:70px  !important ;
            width:406px !important;
            overflow:auto;
            border: 1px solid #C4C0C9;
            margin-left: 116px;
        }

        .rich-fileupload-name {
            height: 3px;
            padding: 0 10px;
            width: 100%;
        }

        .rich-fileupload-button-border{
            float:left !important;
        }
        .errred{
            color: red;
            font-family: arial;
            font-size: 14px;
            margin-left: 255px;
        }
        .disble{
            display: none;
        }
        .changetemp{
            margin-left: 482px;
        }
        .style_blue{
            /*            background: #D1E1F1;*/
            float: left;
            height: 40px;
            margin-top: 4px;
            width: 94%;
        }
        .style_blue_L{
            /*            background: #D1E1F1;*/
            float: left;
            height: 34px;
            margin-top: 4px;
            width: 94%;
        }
        .style_nomal{
            width: 94%;
        }

        .morevh{
            display:none;
        }
        .more_detail_vh{
            color: #0C70D3;
            cursor: pointer;
            float: right;
            margin-right: 35px;
            margin-top: -12px;

        }
        .more_detail_vh_down{
            color: #0C70D3;
            cursor: pointer;
            float: right;
            margin-right: 35px;
            margin-top: -12px;
            display: none;
        }
        .header_mail{

            background: none repeat scroll 0 0 #D4D7D8;
            border: 1px solid #CCCCCC;
            color: #263340;
            cursor: pointer;
            float: left;
            font-size: 12px;
            font-weight: bold;
            height: 21px;
            margin-left: 25px;
            margin-top: 10px;
            padding: 4px 0 0 4px;
            width: 710px;
        }

        .buttonsearch {
            background: url("../images/btn_search.png") no-repeat scroll 7px 4px transparent;
            border: 0 none;
            color: #FFFFFF;
            cursor: pointer;
            height: 24px;
            margin-top: 4px;
            text-transform: uppercase;
            width: 31px;
            margin-left: -28px;
        }
        .rich-table-subheader{
            background: #4884B5;
        }
        .blue{
            background: #E0EFFC;
        }
        .white{
            background: #FFFFFF;
        }
        .keysearchab{
            border: solid 1px  #4884B5;
            height: 23px;
        }

    </style>
    <f:view>
        <h:panelGroup rendered="#{loginSession.login.showGlobalMessage}">
            <center style="width: 100%">
                <div id="globalReport" class="globalReport">
                    <p style="padding-top: -5px;"><h:outputText value="#{loginSession.login.globalMessage}"/></p>
                </div>
            </center>
        </h:panelGroup>
        <a4j:form id="mapform">
            <body style=" float:left; width:auto; height:auto; margin:0px;overflow: hidden;">
                <f:loadBundle basename="#{environmentSession.localizationSource}" var="locale"/>
                <div class="popup" style="height:623px; width:760px;background:white;margin-top:13px; margin-right: 12px ">
                    <div class="popup-header">
                        <div class="title"><h:outputText value="#{locale.send_mail}" style="text-transform:uppercase"/></div>
                        <div style=" position: fixed; float:left; height:50px;width:50px;left:708px;">
                            <a id="fancybox-close" onclick="self.parent.tb_remove()"  style="display: block; float:left;"></a>
                            <%--                            <a class="fancybox-close" onclick="self.parent.location='customer4tour.jsp?action=clear'" <h:outputText rendered="#{m575Bean.s != 'customer4tour'}" value="style='display:none'" /> style="display: block; float:left;" ></a>
                                                        <a class="fancybox-close" onclick="self.parent.location='customerexpand.jsp?action=clear'" <h:outputText rendered="#{m575Bean.s != 'customerexpand'}" value="style='display:none'" /> style="display: block; float:left;"></a>--%>
                        </div>
                    </div>
                    <div class="popup-content">
                        <div class="header_mail"> CHI TIẾT GỬI MAIL </div>
                        <div class="main_content" style="height: 415px; ">
                            <div class="form_item_content" style="margin-top:5px;margin-left: -1px;">
                                <div class="style_nomal">
                                    <div class="fields_input">
                                        <label><h:outputText value="#{locale.title}"/>*:</label>
                                        <h:inputText value="#{m575BeanEx.subjectMail}" style="width:520px;height:20px;"/>

                                    </div> 
                                </div>       
                                <div class="style_blue"> 
                                    <p style="position:absolute; float:left; margin-left:72px;font-size: 12px;margin-top:6px;">Gửi đến :</p>
                                    <div class="fields_input" >
                                        <h:inputText value="#{m575BeanEx.listInfoTo}" style="margin-left:123px;width:520px;height:20px;"/>
                                    </div>    
                                </div>
                                <div class="style_nomal">
                                    <p style="position:absolute; float:left; margin-left:63px;font-size: 12px;margin-top:88px;">Gửi CC :</p>
                                    <div class="fields_input" >
                                        <h:inputText id="listInfo" styleClass="listInfo" value="#{m575BeanEx.listmail}"  style="margin-left:123px;width:520px;height:20px;"/>
                                        <%--<div class="listInfo" style="margin-left:123px;width:520px;height:20px;"> </div>--%>
                                    </div>
                                </div>

                                <div class="more_detail_vh"><img src="../images/up.png" alt=""/></div>
                                <div class="more_detail_vh_down"><img src="../images/down.png" alt=""/></div>
                                <div class="morevh">
                                    <div class="fields_input">
                                        <p style="position:absolute; float:left; margin-left:60px;font-size: 12px;margin-top:0px;"> Đính kèm :</p>
                                        <rich:fileUpload maxFilesQuantity="10"  
                                                         fileUploadListener="#{m575BeanEx.listener}" 
                                                         allowFlash="true"
                                                         uploadControlLabel="Tải lên"
                                                         addControlLabel="Thêm"
                                                         clearAllControlLabel="Xóa hết"
                                                         clearControlLabel="Hủy"
                                                         cancelEntryControlLabel="Hủy"
                                                         style="backgroud: #E5E8EA"
                                                         />
                                    </div>
                                </div>
                                <%--<div class="style_nomal">
                                    <div class="fields_input">
                                        <p style="position:absolute; float:left; margin-left:60px;font-size: 12px;margin-top:0px;"> Đính kèm :</p>
                                        <rich:fileUpload maxFilesQuantity="10"  
                                                        fileUploadListener="#{m575Bean.listener}" 
                                                        allowFlash="true"
                                                        uploadControlLabel="Tải lên"
                                                        addControlLabel="Thêm"
                                                        clearAllControlLabel="Xóa hết"
                                                        clearControlLabel="Hủy"
                                                        cancelEntryControlLabel="Hủy"
                                                        />
                                    </div>
                                </div>  --%>  
                                <div class="style_blue_L"> 
                                    <p style="position:absolute; float:left; margin-left:55px;font-size: 12px;margin-top:10px;"> Mẫu email :</p>
                                    <div class="fields_input changetemp">
                                        <a4j:region>

                                            <h:selectOneMenu value="#{m575BeanEx.pm200}" id="ldv"  styleClass="select_tour fs200" >

                                                <f:selectItems value="#{m575BeanEx.listcomboM200}" />
                                                <a4j:support event="onchange"
                                                             actionListener="#{m575BeanEx.change4ldv}" reRender="content" />
                                            </h:selectOneMenu>
                                        </a4j:region>
                                    </div>
                                </div>
                                <div class="style_blue_L" style="margin-top: 0px;"> 
                                    <p style="position:absolute; float:left; margin-left:55px;font-size: 12px;margin-top:10px;"> Email gửi đi:</p>
                                    <div class="fields_input changetemp">
                                        <%--<h:selectOneMenu  id="codeTour" value="#{m575Bean.filetemp}" styleClass="temp">
                                            <f:selectItems value="#{m575Bean.listcomboM200}" />
                                        </h:selectOneMenu>
                                        <a4j:region>

                                            <h:selectOneMenu value="#{m575BeanEx.mailsendId}" >
                                                <f:selectItems value="#{m575BeanEx.listcomboQ000}" />                                               
                                            </h:selectOneMenu>
                                        </a4j:region>--%>
                                        <h:panelGroup id="abcde">
                                            <h:panelGroup  rendered="#{! m575BeanEx.checkN850pop}">
                                                <a4j:region>
                                                    <h:selectOneMenu value="#{m575BeanEx.mailsendId}" >
                                                        <f:selectItems value="#{m575BeanEx.listcomboQ000}" />                                               
                                                    </h:selectOneMenu>
                                                </a4j:region>
                                            </h:panelGroup>
                                            <h:panelGroup rendered="#{m575BeanEx.checkN850pop}">
                                                <h:selectOneMenu value="#{m575BeanEx.mailsendId}" >
                                                    <f:selectItems value="#{m575BeanEx.listcomboM250}" />     

                                                </h:selectOneMenu>
                                            </h:panelGroup>
                                        </h:panelGroup>
                                        <a4j:region>

                                            <h:selectBooleanCheckbox value="#{m575BeanEx.checkN850pop}" style="margin-left:10px;" >

                                                <a4j:support event="onchange"
                                                             actionListener="#{m575BeanEx.changen850pop}" reRender="abcde" />
                                            </h:selectBooleanCheckbox>

                                        </a4j:region>
                                    </div>
                                </div>
                                <div class="fields_input">
                                    <label><h:outputText value="#{locale.content}" styleClass=""/>:</label>
                                    <rich:editor viewMode="visual"
                                                 theme="advanced"
                                                 value="#{m575BeanEx.contentMail}" height="200" width="524" styleClass="editor" id="content">
                                        <jsp:include page="../../common/EditorComponent.jsp"></jsp:include>

                                    </rich:editor>

                                </div>


                            </div>
                        </div><%-- chi tiet mail--%>

                        <div class="header_mail"> DANH SÁCH KHÁCH HÀNG </div>
                        <div class="main_content disble" style="height: 445px; " >

                            <div class="fromsearch" style="display: block; height: 60px;">
                                <div class="fast_search1">
                                    <h:inputText value="#{m575BeanEx.keysearchKH}" onfocus="if(this.value=='')this.value='';" styleClass="keysearchab"  style="width:256px;margin-left: 222px;"/>
                                    <a4j:commandButton  value='' actionListener="#{m575BeanEx.reloadform}"
                                                        onclick="showPleaseWait();"
                                                        oncomplete="hidePleaseWait();" 
                                                        styleClass="buttonsearch"  reRender="search"/>

                                </div>
                            </div>

                            <h:panelGroup id="search">
                                <div style="height:400px ;margin-top: -15px; width:100%; overflow-x:hidden; overflow-y:scroll"> 
                                    <rich:dataTable value="#{m575BeanEx.listdifn100}" var="cus"
                                                    rows="50"  
                                                    rowClasses="blue, white"
                                                    style=" margin-left:10px;" columnClasses=",columns,columns,columns" rowKeyVar="row"
                                                    id="table" styleClass="machinePosDataTable cus_comp">

                                        <rich:column style="width:30px; text-align:center" styleClass="selectedfn100" lang="#{cus.pn100}">
                                            <f:facet name="header" >
                                                <h:selectBooleanCheckbox  styleClass="checkAll" >
                                                    <a4j:support id="def" event="onchange" actionListener="#{m575BeanEx.changeAll}"  reRender="listInfo" />
                                                </h:selectBooleanCheckbox>
                                            </f:facet>
                                            <h:selectBooleanCheckbox  value="#{cus.selected}" styleClass="check_select"  lang="#{cus.hoten}" >
                                                <a4j:support id="abc" event="onchange" actionListener="#{m575BeanEx.changeAll}"  reRender="listInfo" />
                                            </h:selectBooleanCheckbox>
                                        </rich:column>
                                        <rich:column style="width:200px;" styleClass="kv103" lang="#{cus.kv103}">
                                            <f:facet name="header" >
                                                <h:outputText value="#{locale.frist_lastname}" />
                                            </f:facet>
                                            <div style="width:200px;">
                                                <h:outputText value="#{cus.hoten}" />
                                            </div>
                                        </rich:column>

                                        <rich:column width="120px">
                                            <f:facet name="header">
                                                <h:outputText value="#{locale.identification}" />
                                            </f:facet>

                                            <div style="width:120px;">
                                                <h:outputText value="#{cus.nv109}" />
                                            </div>
                                        </rich:column>


                                        <rich:column  width="120px">
                                            <f:facet name="header">
                                                <h:outputText value="#{locale.email}" />
                                            </f:facet>

                                            <div style="120px;">
                                                <h:outputText value="#{cus.nv120}" />
                                            </div>
                                        </rich:column>
                                        <rich:column  width="1200px">
                                            <f:facet name="header">
                                                <h:outputText value="#{locale.telephone}" />
                                            </f:facet>

                                            <div style="width:120px;">
                                                <h:outputText value="#{cus.nv121}" />
                                            </div>
                                        </rich:column>                            


                                    </rich:dataTable>
                                </div>

                            </h:panelGroup>
                        </div> 

                    </div>


                    <div class="popup-footer" style="margin-top:10px;">

                        <h:outputText styleClass="errred"  value="Thao tác của bạn không thành công !" rendered="#{m575BeanEx.chkMess}"></h:outputText>           
                        <h:outputText styleClass="errred"  value="Thư của bạn đã được gửi!" rendered="#{m575BeanEx.chkMessS}"></h:outputText>           
                        <div class="buttonsave" onclick="self.parent.location='mailExtend.jsp?action=clear'"><span><h:outputText value="#{locale.close}"/></span></div>
                        <h:commandButton onclick="showPleaseWait();"  action="#{m575BeanEx.sendEmail}" value="Gửi" styleClass="buttonsave">

                        </h:commandButton>
                        <%--<h:commandButton onclick="showPleaseWait();"  action="#{m575Bean.check}" value="getlistMail" styleClass="buttonsave">

                        </h:commandButton>--%>
                        <rich:modalPanel id="ajaxLoadingModalBox" minHeight="30" minWidth="40"
                                         height="30" width="40" zindex="2000">
                            <h:outputText value="#{locale.please_wait}" styleClass="startDummer"></h:outputText>
                        </rich:modalPanel>

                    </div>

                </div>
            </body>
        </a4j:form>

    </f:view>
</html>
<script type="text/javascript" language="javascript">
    var open_cur = 0;
    $j = jQuery.noConflict();
    $j(document).ready(function(){
            
           
    });
               
</script>

